//
//  SDCacheManagement.h
//  SKinDiary
//
//  Created by pcyang on 16/6/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString* Notification_CacheWillbeCleaned;

@protocol SDCleanCacheProtocol
+ (void)cleanCache;

@optional
+ (BOOL)cleanCacheWhenUserChanged;
@end

@interface SDCacheManagement : NSObject

+ (void)cleanAllCachesWithUserChanged:(BOOL)userChanged completion:(void (^)(void))completion;
+ (void)cleanAllCaches:(BOOL)userChanged completion:(void (^)(void))completion;
+ (void)cleanAllDataCaches;
+ (NSString*)rootCachePath;
+ (NSString*)rootDocumentPath;
+ (NSString*)getFilePathInCache:(NSString *)filename;
+ (NSString*)getFilePathInDocument:(NSString *)filename;
+ (CGFloat)sizeOfCacheDic;
@end
